<!--  -->
<template>
  <view class="body_view">
    <view class="body_one" v-for="(item,index) in List" :key="index">
      <view class="dis_play">
        <view class="serial">订单编号:{{ item.serial }}</view>
        <view class="status_text">
          {{ item.status == 1 ? "待支付" :  item.status == 2 ? "支付超时": item.status == 3 ? "已支付" : item.status == 4 ? "已退款 ":item.status == 5 ? "已取消": item.status == 6 ? "已使用" :"" }}
        </view>
      </view>
      <view class="dis_palyq">
        <view class="view_one">
          <img :src="item.img " alt="">
        </view>
        <view class="view_two">
          <view class="name">{{ item.name }}</view>
          <view class="time">{{ item.time }}</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  //这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
  //例如：import 《组件名称》 from '《组件路径》';
  import {
    getMineOrder
  } from '@/common/request/api.js'
  export default {
    //import引入的组件需要注入到对象中才能使用
    components: {},
    data() {
      //这里存放数据
      return {
        List: [{
            name: "小小讲解员第94期-住宿班——恐龙大冒险小小小讲解员第94期-住宿班——恐龙大冒险小小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "1",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          },
          {
            name: "小小讲解员第94期-住宿班——恐龙大冒险小小小讲解员第9小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "2",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          },
          {
            name: "小小讲解员冒险小小小讲解员第94期-住宿班——恐龙大冒险小小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "3",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          }, {
            name: "小小讲解员冒险小小小讲解员第94期-住宿班——恐龙大冒险小小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "4",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          }, {
            name: "小小讲解员冒险小小小讲解员第94期-住宿班——恐龙大冒险小小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "5",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          }, {
            name: "小小讲解员冒险小小小讲解员第94期-住宿班——恐龙大冒险小小...",
            time: "2020-10-10 10:10:10",
            serial: "51561646156136",
            status: "6",
            img: "https://ts1.cn.mm.bing.net/th?id=OIP-C.Rmu2HNfPTot9nN9kWt0dbgHaNK&w=187&h=333&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"
          }
        ]
      };
    },
    //监听属性 类似于data概念
    computed: {},
    //监控data中的数据变化
    watch: {},
    //方法集合
    onLoad(options) {
      this.getMineOrder1()
    },
    methods: {
      getMineOrder1() {
        getMineOrder(0).then(res => {
          console.log(res)
        })
      }
    },
    beforeCreate() {}, //生命周期 - 创建之前
    //生命周期 - 创建完成（可以访问当前this实例）
    created() {

    },
    beforeMount() {}, //生命周期 - 挂载之前
    //生命周期 - 挂载完成（可以访问DOM元素）
    mounted() {

    },
    beforeUpdate() {}, //生命周期 - 更新之前
    updated() {}, //生命周期 - 更新之后
    beforeDestroy() {}, //生命周期 - 销毁之前
    destroyed() {}, //生命周期 - 销毁完成
    activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
  }
</script>
<style lang="less" scoped src="./index.less">

</style>